package cn.javass.dp.composite.example3;

public class Leaf extends Compoment{
    private String name = "";

    public Leaf(String name) {
        this.name = name;
    }

    public void printStruct(String preStr) {
        System.out.println(" - " + this.name);
    }
}
